package persistent;

public class DocOrders 
{
	/*
	 * Prescription (drugs + instructions for example penicillin 3 times a day)
Lab Work Performed (blood tests, urine tests, immunizations)
Follow up instructions (for example come back in 3 days)
Other instructions (for example, drink fluids, take oatmeal bath, etc)
	 */
	
	String drugs, drugInstruc, labWork, followUp, otherInstruc;
	TreatmentRecord tr;
	double cost;
	
	/**
	 * Default constructor for DocOrders object
	 * 
	 * @param inc The TreatmentRecord it is attached to
	 */
	DocOrders(TreatmentRecord inc)
	{
		tr = inc;
	}
	
	/**
	 * Major constructor for the DocOrders object, which is to be attached to a TreatmentRecord
	 * 
	 * @param tr The treatment record it is attached to
	 * @param drugs String representing the drugs prescribed
	 * @param drugInstruc Associated instructions with above
	 * @param labWork String representing any lab work done
	 * @param followUp String representing follow up instruction
	 * @param otherInstr String for any other isntructions
	 */
	public DocOrders(TreatmentRecord tr, String drugs, String drugInstruc, String labWork, 
			String followUp, String otherInstr)
	{
		this.tr = tr;
		this.drugs = drugs;
		this.drugInstruc = drugInstruc;
		this.labWork = labWork;
		this.followUp = followUp;
		this.otherInstruc = otherInstruc;
	}
	
	public String getPrescription()
	{
		return "Administered " + drugs + "with the following instructions: " + drugInstruc;
	}

	public void setPrescription(String drugs, String instr)
	{
		this.drugs = drugs;
		drugInstruc = instr;
	}
	
	public String getLabWork()
	{
		//Should we put something in here to calculate cost
		return labWork;
	}
	
	public void setLabWork(String lab)
	{
		labWork = lab;
	}
	
	public String getFollowUpInstruc()
	{
		return followUp;
	}
	
	public void setFollowUpInstruc(String follow)
	{
		followUp = follow;
	}
	
	public String getOther()
	{
		return otherInstruc;
	}
	
	public void setOther(String other)
	{
		otherInstruc = other;
	}
}
